package com.dsw.demo;

import org.springframework.dsw.BeanFactory;

public class Demo {

    public static void main(String[] args) throws ClassNotFoundException {
        BeanFactory beanFactory = new BeanFactory();
        B c = (B) beanFactory.getBean("c");
        c.test();
        B d = (B) beanFactory.getBean("d");
        Test2 test2 = (Test2) beanFactory.getBean("test2");
        Test1 test1 = (Test1) beanFactory.getBean("test1");
        test1.test();
        System.out.println(test2);
        test2.test();
        System.out.println(test1);
    }
}
